////////////////////////////////////////////////////////////////////////////
   var storeNamePres = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'text'
        ],
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../prescription',
            doClass:'namePres',
            preName:''
        }),
        baseParams: {doClass:'namePres'}
    });
    storeNamePres.setDefaultSort('text', 'acs');
    
    var searchField = new Ext.app.SearchField({
                store: storeNamePres,
                paramName:'preName',
                value:preName
            });
            
    // create the Grid
    var gridNamePres = new Ext.grid.GridPanel({
        store: storeNamePres,
        shadow:true,
        autoScroll: true,
        border:true,
          tbar: [
            '&nbsp;&nbsp; ', 
            searchField
        ],
        columns: [
        	new Ext.grid.CheckboxSelectionModel(),
            {id:'AA',header: "选择", width: 50,sortable: true, dataIndex: 'id', hidden:true},
            {header: "方剂名称", width: 180, sortable: true, dataIndex: 'text',menuDisabled:true}
        ],
         iconCls:'icon-grid',
         bodyStyle:'width:100%;',
		 autoWidth:true,
         layout: 'fit',
         height : 500,
         sm: new Ext.grid.CheckboxSelectionModel({singleSelect: false})
    });
   
    gridNamePres.on('rowclick', function(g, rowIdx, e) {
   			selectPreRecord(g.getSelectionModel().getSelections());
	});
	
    gridNamePres.render('grid_NamePres');
    storeNamePres.load({params:{doClass:'namePres',preName:preName}});